﻿#ifndef FINANCEKEEPTABLEVIEW_H
#define FINANCEKEEPTABLEVIEW_H

#include "mytableview.h"
#include "financekeepstandarditemmodel.h"
#include "financeservice.h"

class FinanceKeepTableView : public MyTableView
{
    Q_OBJECT
public:
    explicit FinanceKeepTableView(QWidget *parent = nullptr);

    void getFinanceItems();

    FinanceItem* currentFinanceItem();

    void queryFinanceItem(QString primaryDirectory, QString secondaryDirectory);
signals:

public slots:

private:
    FinanceKeepStandardItemModel *model;

    FinanceService financeService;

    QList<FinanceItem*> cacheFinanceItems;
};

#endif // FINANCEKEEPTABLEVIEW_H
